package csw;

import java.util.Scanner;

public class J10Return {
	//return 문을 사용하는 메소드
	public static void main(String[] args) {
		int x,y;	//사칙연산할 입력값
		int sum = 0, minus = 0, multiple = 0, divide = 0;
		
		Scanner sc= new Scanner(System.in);
		System.out.println("값을 입력하세용");
		x = sc.nextInt();
		y = sc.nextInt();

		//먼저, 메소드호출
		// 메소드 return 결과값을 변수저장
/*		sum = getSum(x,y);
		getMinus(x,y);
		getMultiple(x,y);*/
		//getDivide(x,y);
		
		divide = getDivide(x, y);
		multiple = getMultiple(x,y);
		sum = getSum(x,y);
		minus = getMinus(x,y);
		
		System.out.println(x);
		System.out.println(y);
		System.out.println(sum);
		System.out.println(minus);
		System.out.println(multiple);
		System.out.println(divide);
		
		
		sc.close();
		
		
	}//main

	private static int getDivide(int x, int y) {
		//int divide;		
		//divide = x/y;
		return x/y;
	}

	private static int getMultiple(int x, int y) {
		return x*y;
	
		
	}

	private static int getMinus(int x, int y) {
		return x-y;
		
	}

	private static int getSum(int x, int y) {
		return x+y;
		
	}

}
